package javabasic.string;

import java.io.Console;
import java.util.Arrays;
import java.util.Scanner;

/**
 * @author Jonny Long
 * @date 2021/2/17 15:16
 */
public class StringTest01 {
    public static void main(String[] args) {
        //// 浅拷贝
        //int[] smallPrimes=new int[]{2,3,5,7,11,12};
        //int[] luckyNumbers=smallPrimes;
        //System.out.println("浅拷贝:"+(smallPrimes==luckyNumbers));
        //// 深拷贝
        //int[] copiedLuckyNumbers= Arrays.copyOf(smallPrimes,smallPrimes.length);
        //System.out.println("深拷贝:"+(copiedLuckyNumbers==smallPrimes));

        // 不规则数组
        int[][] x=new int[3][];
        x[0]=new int[]{1};
        x[1]=new int[]{1,2};
        x[2]=new int[]{1,2,3};
        for(int[] row:x){
            for (int col:row){
                System.out.print(col);
            }
            System.out.print("\n");
        }
    }
}
